<#assign hash="#">

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="${hash}{systemConfigBean.memberTemplatePath}"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.prime.com.tr/ui">

    <ui:define name="content">

        <p:growl id="operationReultMessage" globalOnly="true" />

        <h:form id="${ObjectMap.OBJECT_CODE_BEAN_PATTERN}InfoFrm">
            <p:panel id="basicInfo" closable="false" toggleable="false" header="basic Info">
                <h:panelGrid columns="3" width="100%" 
                             columnClasses="columnStyleInputFormLabel columnStyleAlign_${hash}{sessionInfo.locale}, columnStyleInputFormData columnStyleAlignInverse_${hash}{sessionInfo.locale}, columnStyleInputFormMsg"
                             rowClasses="ui-widget-content ui-datatable-odd, ui-widget-content ui-datatable-even">

                        <#list ObjectMap.attributesList   as  myList>
                                <h:panelGroup>
                                        <h:outputLabel for="${myList.ATTRIBUTE_CODE_BEAN_PATTERN}_updateID" value="${hash}{msgs.${myList.ATTRIBUTE_CODE_BEAN_PATTERN}?" />
                                        <h:outputText value="${hash}{msgs.GEN_REQUIRED_MARK}" styleClass="required"/>
                                    </h:panelGroup>

                        <#switch myList.UPDATE_PAGE_INPUT_TYPE>

                          <#case "inputText">
                                        <p:inputText id="${myList.ATTRIBUTE_CODE_BEAN_PATTERN}_updateID" value="${hash}{update${ObjectMap.OBJECT_CODE_CAMEL_CASE}Bean.${ObjectMap.OBJECT_CODE_BEAN_PATTERN}.${myList.ATTRIBUTE_CODE_BEAN_PATTERN}" styleClass="formInputData" readonly="true" disabled="true" />
                             <#break>
                          <#case "SelectOneMenu">
                                        <h:selectOneMenu  id="${myList.ATTRIBUTE_CODE_BEAN_PATTERN}_updateID" value="${hash}{update${ObjectMap.OBJECT_CODE_CAMEL_CASE}Bean.${ObjectMap.OBJECT_CODE_BEAN_PATTERN}.countryNo.countryNo}" styleClass="ui-inputfield ui-widget ui-state-default ui-corner-all formInputData countrySelect" >
                                            <f:selectItems value="${hash}{update${ObjectMap.OBJECT_CODE_CAMEL_CASE}Bean.countries}" />
                                            <f:validateRequired/>
                                        </h:selectOneMenu>
                             <#break>
                          <#case "inputMask">
                                        <p:inputMask id="${myList.ATTRIBUTE_CODE_BEAN_PATTERN}_updateID" value="${hash}{update${ObjectMap.OBJECT_CODE_CAMEL_CASE}Bean.${ObjectMap.OBJECT_CODE_BEAN_PATTERN}.${myList.ATTRIBUTE_CODE_BEAN_PATTERN}"  mask="${myList.}" styleClass="formInputData">
                                            <f:validateRequired/>
                                            <f:validateLength maximum="20" minimum="20"/>
                                            <p:tooltip for="instFax" value="${hash}{msgs.GEN_PHONE_MASK}" showEvent="focus" hideEvent="blur" position="topCenter"/>
                                        </p:inputMask>
                             <#break>
                          <#case "selectOneRadio">
                                        <h:selectOneRadio id="${myList.ATTRIBUTE_CODE_BEAN_PATTERN}_updateID" value="${hash}{update${ObjectMap.OBJECT_CODE_CAMEL_CASE}Bean.${ObjectMap.OBJECT_CODE_BEAN_PATTERN}.${ObjectMap.OBJECT_CODE_BEAN_PATTERN}Type}" 
                                                          styleClass="ui-inputfield ui-widget ui-state-default ui-corner-all formInputData"
                                                          onclick="handle${ObjectMap.OBJECT_CODE_CAMEL_CASE}Type()" onchange="handle${ObjectMap.OBJECT_CODE_CAMEL_CASE}Type()">
                                            <f:selectItem itemValue="1" itemLabel="${hash}{msgs.ADMIN_MANAGE_INSTITUTES_GOVERNMET}" noSelectionOption="true"  />
                                            <f:selectItem itemValue="2" itemLabel="${hash}{msgs.ADMIN_MANAGE_INSTITUTES_PRIVATE}" />
                                            <f:selectItem itemValue="3" itemLabel="${hash}{msgs.ADMIN_MANAGE_INSTITUTES_REGIONAL}" />                        
                                        </h:selectOneRadio>
                             <#break>
                          <#default>

                        </#switch>  
                                        <p:message id="uniTypeMsg" for="uniType" />
                        </#list>

                        </h:panelGrid>
                    </p:panel>



            <p:commandButton value="process" update="basicInfo locationInfo" />
            
            
        </h:form>

        <h:outputScript name="${ObjectMap.OBJECT_CODE_BEAN_PATTERN}Location.js" library="js/admin/${ObjectMap.OBJECT_CODE_BEAN_PATTERN}s"/>
    </ui:define>


</ui:composition>